From: Florian Müllner Date: Tue, 27 Mar 2012 17:38:23 +0000 (+0200) Subject: baseIcon: Always recreate icon texture on style changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6678 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b833aff3c826ff23bf91a7be2e194365731af864;p=gnome-shell.git baseIcon: Always recreate icon texture on style changes Commit 26580f8f reintroduced an optimization on style changes to avoid creating icons unconditionally. As this breaks icon theme changes (for instance when toggling "High Contrast" in the universal access menu), remove it again. https://bugzilla.gnome.org/show_bug.cgi?id=672941 --- diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 54b792a07..ef71bc7a0 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -146,11 +146,6 @@ const BaseIcon = new Lang.Class({ size = found ? len : ICON_SIZE; } - // don't create icons unnecessarily - if (size == this.iconSize && - this._iconBin.child) - return; - this._createIconTexture(size); } });